package com.jb.platform.admin.service.impl;

import com.jb.platform.admin.entity.UserEntity;
import com.jb.platform.admin.mapper.UserMapper;
import com.jb.platform.admin.service.UserService;
import com.jb.platform.core.pojo.page.PageParam;
import com.jb.platform.core.pojo.page.PageResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author AnTi
 * @date 2024年05月13日
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    UserMapper userMapper;

    @Override
    public PageResult<UserEntity> getPage(PageParam pageParam, String name) {
        PageResult<UserEntity> userEntityPageResult = userMapper.selectPage(pageParam, name);

//        userMapper.insert();
//        userMapper.update();
//        userMapper.delete();
        return userEntityPageResult;
    }
}
